import service from "@/utils/request";

export function useGetShipperInfoApi(id: string){
  return service.get("/slag-truck/shipper/"+ id)
}
export function useShipperUpdateApi(data: any) {
  return service.put("/slag-truck/shipper", data)
}
export function useShipperInsertApi(data: any) {
  return service.post("/slag-truck/shipper", data)
}
export function useShipperResetPasswordApi(id: string){
  return service.get("/slag-truck/shipper/reset-password", {
    params: {
      id: id
    }
  })
}
export function useRemoveShipperApi(id: string){
  return service.delete("/slag-truck/shipper/" + id)
}
export function useShipperAuthenticationApi(data: any){
  return service.post("/slag-truck/shipper/audited", data)
}

export function useShipperListApi(){
  return service.get("/slag-truck/shipper/select")
}


